package v1

import (
	"Sailor/app/Sailor-console-server/internal/model/entity"
	"github.com/gogf/gf/v2/frame/g"
)

type TaskLogListReq struct {
	g.Meta   `path:"/task/log/list" tags:"Api" method:"get" summary:"分页获取任务日志列表"`
	PageSize int    `json:"pageSize" v:"required|between:1,50#pageSize为必填参数|pageSize应大于等于1且小于等于50"`
	Page     int    `json:"page" v:"required|min:0#page为必填参数|page应大于等于0"`
	TaskUuid string `json:"taskUuid" v:"required#taskUuid为必填参数"`
	Status   string `json:"status"`
}

type TaskLogListRes struct {
	PageSize int                 `json:"pageSize"`
	Page     int                 `json:"page"`
	Total    int                 `json:"total"`
	Rows     []entity.SysTaskLog `json:"rows"`
}
